﻿namespace EyeOpen.TimeAssistant.Client.Wcf
{
    using System.ComponentModel;

    public class AuthenticateUserCompletedEventArgs : AsyncCompletedEventArgs
    {
        private object[] results;

        public AuthenticateUserCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState)
        {
            this.results = results;
        }

        public bool Result
        {
            get
            {
                base.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
    }
}